<?php

/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2023-09-19 16:28:58
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2023-09-24 06:59:25
 */


declare(strict_types=1);

namespace Common\Models\Enums\ApiResEnums;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * @Constants
 */
#[Constants]
class ErrorCode extends AbstractConstants
{
    /**
     * @Message("Server Error 500!")
     */
    public const SERVER_ERROR = 500;

    /**
     * @Message("Server Error 503!")
     */
    public const TOKEN_INVALID = 503;

    /**
     * @Message("oops 404!")
     */
    public const COMMON_ERROR = 404;

    /**
     * @Message("Unauthorized 401!")
     */
    public const UNAUTHORIZED = 401;

    /**
     * @Message("Forbidden 403!")
     */
    public const FORBIDDEN = 403;

    /**
     * @Message("Bad_request 400!")
     */
    public const BAD_REQUEST = 400;

    /**
     * @Message("Unprocessable_entity 405!")
     */
    public const UNPROCESSABLE_ENTITY = 405;
}
